import React from 'react'
import {Route, Link} from 'react-router-dom'
import ChildRouteComp from './ChildRouteComp'

export default function RouteComp1() {
  return (
    <div>
      <h2>RouteComp1</h2>
      <Link to="/rc1/child">显示子路由界面</Link>
      <hr />
      <Route path="/rc1/child" component={ChildRouteComp}></Route>
    </div>
  )
}
